package com.thenmoret.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.thenmoret.mapper.AdminMapper;
import com.thenmoret.pojo.Admin;
import com.thenmoret.service.AdminService;
@Service
public class AdminServiceImpl implements AdminService{

	@Autowired
	private AdminMapper adminMapper;

	@Override
	public Admin getAdmin(Integer id) {
		return adminMapper.selectByPrimaryKey(id);
		
	}

	@Override
	public Admin getAdmin(Admin admin) {
		return adminMapper.selectByAdmin(admin);
	}
}
